home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
023a
/
prop_man.zip
/
RAISE.SAB
< prev
next >
Wrap
Text File
|
1991-08-23
|
2KB
|
56 lines
set messages off
set error messages off
label start
clear all v
cls
display cp.dis
Write "RAISE.SAB" AT 2,36
write "Rent Increase" at 5,33
fillin code using "Enter Entire ADD.CODE (or <ESC>) " at 10,10
if code = "" then
cls ; return
endif
write "Current Rent = " at 11,10
set v rate to rent in cur.mast where add.code = .code
write .rate at 11,26
write "since" at 11,36
set v since to last.inc in cur.mast where add.code = .code
write .since at 11,42
set v cont to ""
fillin cont using "Continue? " at 11,55
if cont = "n" or cont = "no" then
goto start
endif
set v nurate currency
fillin nurate using "Enter New Rent Amount " at 14,10
fillin nudate using "Enter Effective Date " at 15,10
set v nudate date
set null " "
output printer
print uprent where add.code = .code
output screen
set v parta to "Change Rent To"
set v nurate text
change rec.call to (.nudate - 10) in cur.mast where add.code = .code
change reason to (.parta & .nurate) in cur.mast where add.code = .code
change exp.date to .nudate in cur.mast where add.code = .code
change last.inc to .nudate in cur.mast where add.code = .code
set v sone currency
set v stwo currency
label step1
set v sone to pro.rent in cur.mast where add.code = .code
if sone > .nurate then
goto step2
endif
change prorent to .nurate in cur.mast where add.code = .code
label step2
set v stwo to rent in property where add.code = .code
if stwo > .nurate then
goto env
endif
change prorent to .nurate in property where add.code = .code
change rent to .nurate in property where add.code = .code
label env
goto start